package com.example.springboot.domain;


public class Blog {
    private Integer id;
    private String title;
    private String content;
//    简介
    private String descr;
//    封面
    private String cover;
//    标签
    private  String tags;
//    发布人ID
    private Integer userId;
//    发布日期
    private String date;
//    浏览量
    private Integer readCount;

    private User user;
//    点赞数和收藏数
    private Integer likesCount;
    private Integer collectCount;

    private String userName;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getLikesCount() {
        return likesCount;
    }

    public void setLikesCount(Integer likesCount) {
        this.likesCount = likesCount;
    }

    public Integer getCollectCount() {
        return collectCount;
    }

    public void setCollectCount(Integer collectCount) {
        this.collectCount = collectCount;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public Integer getReadCount() {
        return readCount;
    }

    public void setReadCount(Integer readCount) {
        this.readCount = readCount;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "Blog{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", descr='" + descr + '\'' +
                ", cover='" + cover + '\'' +
                ", tags='" + tags + '\'' +
                ", userId=" + userId +
                ", date='" + date + '\'' +
                ", readCount=" + readCount +
                ", user=" + user +
                ", likesCount=" + likesCount +
                ", collectCount=" + collectCount +
                ", userName='" + userName + '\'' +
                '}';
    }
}
